update appveyor for Qt 5.12.1 (#301)
authortsteven4 <tsteven4@users.noreply.github.com>
Fri, 15 Feb 2019 18:07:38 +0000 (11:07 -0700)
committerGitHub <noreply@github.com>
Fri, 15 Feb 2019 18:07:38 +0000 (11:07 -0700)
* update appveyor builds.

archive msvc2017,nmake, Qt 5.12,x86.
switch all msvc2017 builds to Qt 5.12.

* work around qmake 5.12.1 bug.

reorder builds so release candidate is done first.

appveyor.yml
tools/make_windows_release.ps1

index 4f8577bf49fb6eb5f20640ac4cc20ff0927a9b59..14829154a552c2ab01b6b47a1de1b937ae4af41c 100644 (file)
@@ -1,23 +1,29 @@
 version: 1.0.{build}
 
+# msvc arch decode is host_target
+
 environment:
   matrix:
   - arch: x86
-    qt: 5.9\msvc2015
-    flow: nmake
-    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
-  - arch: amd64
-    qt: 5.9\msvc2015_64
-    flow: nmake
-    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
-  - arch: x86_amd64
-    qt: 5.9\msvc2017_64
+    qt: 5.12\msvc2017
     flow: nmake
     APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
-  - arch: x86_amd64
-    qt: 5.9\msvc2017_64
+  - arch: x86
+    qt: 5.12\msvc2017
     flow: msbuild
     APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+  - arch: x86_amd64
+    qt: 5.12\msvc2017_64
+    flow: nmake
+    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+  - arch: x86
+    qt: 5.9\msvc2015
+    flow: nmake
+    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
+  #- arch: amd64
+  #  qt: 5.9\msvc2015_64
+  #  flow: nmake
+  #  APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
 
 init:
   - set PATH=C:\Qt\%qt%\bin;%PATH%
@@ -31,10 +37,10 @@ build_script:
       echo "qt: $env:qt"
       qmake -query
       Get-Location
-      if (($env:arch -eq "x86") -and ($env:qt -eq "5.9\msvc2015"))
+      if (($env:flow -eq "nmake") -and ($env:arch -eq "x86") -and ($env:qt -eq "5.12\msvc2017"))
       {
         # full build and deploy of our release configuration
-        & ".\tools\make_windows_release.ps1" -gpsbabel_build_dir_name "build-GPSBabel-Desktop_Qt_5_9_MSVC2015_32bit-Release" -gui_build_dir_name "build-app-Desktop_Qt_5_9_MSVC2015_32bit-Release" -flow $env:flow -buildinstaller "true"
+        & ".\tools\make_windows_release.ps1" -flow $env:flow -buildinstaller "true"
         $verid=(Get-Date -UFormat "%Y%m%dT%H%MZ" -Date (Get-Date -Date (git show -s --format="%aI" HEAD)).toUniversalTime()) `
                + '-' + (git rev-parse --short=7 HEAD)
         Get-ChildItem .\gui\release\GPSBabel-*-Setup.exe | % { Push-AppveyorArtifact $_.FullName -FileName "GPSBabel-$($verid)-Setup.exe" }
@@ -65,7 +71,7 @@ deploy_script:
   - ps: |
       $env:projdir=(C:\msys64\usr\bin\bash.exe -c "pwd")
       C:\msys64\usr\bin\bash.exe -lc "cd $env:projdir; ./tools/ci_tokens"
-      if (($env:arch -eq "x86") -and ($env:qt -eq "5.9\msvc2015") -and ($env:APPVEYOR_REPO_BRANCH -eq "master"))
+      if (($env:flow -eq "nmake") -and ($env:arch -eq "x86") -and ($env:qt -eq "5.12\msvc2017") -and ($env:APPVEYOR_REPO_BRANCH -eq "master"))
       {
         $verid=(Get-Date -UFormat "%Y%m%dT%H%MZ" -Date (Get-Date -Date (git show -s --format="%aI" HEAD)).toUniversalTime()) `
                + '-' + (git rev-parse --short=7 HEAD)
index fc61ece7950cfe1fb8e217141dbfd391fb092268..8a75af62fc200a978700a65843ab203164f8fcf1 100755 (executable)
@@ -31,7 +31,12 @@ New-Item "$($gpsbabel_build_dir)" -type directory -force | Out-Null
 Set-Location "$($gpsbabel_build_dir)"\r
 switch ($flow) {\r
   "mingw"   { qmake "$($gpsbabel_src_dir)\GPSBabel.pro" -spec "win32-g++" }\r
-  "msbuild" { qmake -tp vc "$($gpsbabel_src_dir)\GPSBabel.pro"}\r
+  # work around Qt 5.12.1 qmake bug.\r
+  #C:\Qt\5.12.1\msvc2017\bin\qmake.exe -tp vc GPSBabel.pro\r
+  #WARNING: Could not parse Compiler option '-std:c++14'; added to AdditionalOptions.\r
+  #WARNING: You can suppress these warnings with CONFIG+=suppress_vcproj_warnings.\r
+  #WARNING: Could not parse Compiler option '-std:c++14'; added to AdditionalOptions.\r
+  "msbuild" { $ErrorActionPreference = "Continue"; qmake -tp vc "$($gpsbabel_src_dir)\GPSBabel.pro"; $ErrorActionPreference = "Stop" }\r
   "nmake"   { qmake "$($gpsbabel_src_dir)\GPSBabel.pro" -spec "win32-msvc" }\r
 }\r
 if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }\r